package com.linxiao.hrcrm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户签卡记录对象 crm_customer_sign_in
 * 
 * @author zhoudong
 * @date 2024-01-03
 */
public class CrmCustomerSignIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 签卡状态，待审批 */
    public static final String STATUS_AUDIT = "AUDIT";
    /** 签卡状态，审批通过 */
    public static final String STATUS_PASS = "PASS";
    /** 签卡状态，审批拒绝 */
    public static final String STATUS_REFUSE = "REFUSE";
    /** 签卡状态，完成-已经计算薪资 */
    public static final String STATUS_FINISH = "FINISH";

    /** 主键ID */
    private Long id;

    /** 商户ID */
    @Excel(name = "商户ID")
    private Long mchId;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long customerId;

    /** 签卡时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "签卡时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date signInTime;

    /** 签卡日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签卡日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signInDate;

    /** 签卡项目ID */
    @Excel(name = "签卡项目ID")
    private Long projectId;

    /** 签卡工地ID */
    @Excel(name = "签卡工地ID")
    private Long worksiteId;

    /** 签卡负责人ID */
    @Excel(name = "签卡负责人ID")
    private Long employeeId;

    /** 签卡地点 */
    @Excel(name = "签卡地点")
    private String location;

    /** 签卡文件 */
    @Excel(name = "签卡文件")
    private String filePath;

    /** 签卡状态 */
    @Excel(name = "签卡状态")
    private String status;

    /** 客户名称，不保存数据库，仅做展示使用 */
    @Excel(name = "客户名称")
    private String customerName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMchId(Long mchId) 
    {
        this.mchId = mchId;
    }

    public Long getMchId() 
    {
        return mchId;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setSignInTime(Date signInTime) 
    {
        this.signInTime = signInTime;
    }

    public Date getSignInTime() 
    {
        return signInTime;
    }
    public void setSignInDate(Date signInDate) 
    {
        this.signInDate = signInDate;
    }

    public Date getSignInDate() 
    {
        return signInDate;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setWorksiteId(Long worksiteId) 
    {
        this.worksiteId = worksiteId;
    }

    public Long getWorksiteId() 
    {
        return worksiteId;
    }
    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mchId", getMchId())
            .append("customerId", getCustomerId())
            .append("signInTime", getSignInTime())
            .append("signInDate", getSignInDate())
            .append("projectId", getProjectId())
            .append("worksiteId", getWorksiteId())
            .append("employeeId", getEmployeeId())
            .append("location", getLocation())
            .append("filePath", getFilePath())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
